package com.wdcloud.niceandroid;

import android.view.View;
import android.widget.TextView;

import com.plattysoft.leonids.ParticleSystem;
import com.wdcloud.framework_business.base.BaseActivity;
import com.wdcloud.framework_business.mvp.IBasePresenter;

import butterknife.BindView;
import butterknife.OnClick;

public class MainActivity extends BaseActivity {
    @BindView(R.id.textview)
    TextView textView;

    //    @Override
//    protected void onCreate(Bundle savedInstanceState) {
//        super.onCreate(savedInstanceState);
//        View viewById = findViewById(R.id.textview);
//        viewById.setOnClickListener(new View.OnClickListener() {
//            @Override
//            public void onClick(View view) {

//
//            }
//        });
//    }
    @OnClick({R.id.textview})
    public void onViewClicked(View view) {
                new ParticleSystem(MainActivity.this, 500, R.mipmap.fire, 5000)
                        .setSpeedModuleAndAngleRange(0.05f, 0.2f, 0, 360)
                        .setRotationSpeed(10)
                        .setAcceleration(0, 90)
                        .oneShot(textView, 100);
    }

    @Override
    protected Object getLayout() {
        return R.layout.activity_main;
    }

    @Override
    protected IBasePresenter initPresenter() {
        return null;
    }
}